package com.example.demo.sevice.impl;

import com.example.demo.bean.Department;
import com.example.demo.bean.Message;
import com.example.demo.bean.Time;
import com.example.demo.bean.Warehouse;
import com.example.demo.dao.SelectDao;
import com.example.demo.sevice.SelectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SelectImpl  implements SelectService {

    @Autowired
    private SelectDao selectDao;

    @Override
    public List<Department> department() {
        return selectDao.department();
    }

    @Override
    public List<Message> message(String Hospital) {
        return selectDao.Message(Hospital);
    }

    @Override
    public List<Message> sel(String Hospital) {
        return selectDao.sel(Hospital);
    }

    @Override
    public List<Time> time(String Hospital) {
        return selectDao.time(Hospital);
    }

    @Override
    public List<Warehouse> warehouse(int id) {
        return selectDao.warehouse(id);
    }
}
